package org.monkey.common.cbs.entity.mo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 排序实体类配置
 *
 * @author liting
 * @version 1.0
 * @date 2020/2/27
 */

@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class FieldOrder {

    public static final String ASC = "asc";
    public static final String DESC = "desc";
    public static final String DEFAULT_NAME = "ctdTime";
    @ApiModelProperty(name = "fieldName", value = "排序字段名")
    private String fieldName;
    @ApiModelProperty(name = "orderType", value = "排序类型 小到大 asc ,大到小 desc")
    private String orderType = ASC;

}
